package com.zzwcode.springweb.api.controller;


import com.zzwcode.springweb.web.controller.IndexWebController;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/test")
@Tag(name = "测试接口", description = "用于存放接口测试")
public class TestApiController {

    private static final Logger logger = LoggerFactory.getLogger(TestApiController.class);

    @Operation(summary = "测试接口1", description = "这是第一个测试接口用于测试服务是否正常")
    @GetMapping()
    public String test(){
        throw new RuntimeException("侧睡");
    }
}
